[Unit]
Description=redis.server
After=network.target

[Service]
Type=forking
ExecStart={{ redis_install_path }}/bin/redis-server {{ redis_conf_path }}/redis.conf
Restart=always
# 在重新启动前等待 5 秒
RestartSec=5 

[Install]
WantedBy=multi-user.target